home *** CD-ROM | disk | FTP | other *** search
/ Aminet 51 / Aminet 51 (2002)(GTI - Schatztruhe)[!][Oct 2002].iso / Aminet / util / arc / xadmasterdev.lha / xad / Sources / clients / xadCPU.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-08-20  |  1.5 KB  |  51 lines

  1. #ifndef XADMASTER_XADCPU_H
  2. #define XADMASTER_XADCPU_H
  3.  
  4. /* Programmheader
  5.  
  6.     Name:        xadCPU.h
  7.     Main:        xadmaster
  8.     Versionstring:    $VER: xadCPU.h 1.0 (02.10.2000)
  9.     Author:        SDI
  10.     Distribution:    Freeware
  11.     Description:    CPU related stuff for xad clients
  12.  
  13.  1.0   02.10.00 : first version
  14. */
  15.  
  16. #include <exec/execbase.h>
  17.  
  18. /* The defines _M680x0 are done automatically by SAS-C. Do them in makefile
  19. for other compilers. */
  20.  
  21. #ifdef _M68060
  22.   #define CPUCHECK    if(!(xadMasterBase->xmb_SysBase->AttnFlags & AFF_68060)) return 0;
  23.   #define CPUTEXT    " 060"
  24. #elif defined (_M68040)
  25.   #define CPUCHECK    if(!(xadMasterBase->xmb_SysBase->AttnFlags & AFF_68040)) return 0;
  26.   #define CPUTEXT    " 040"
  27. #elif defined (_M68030)
  28.   #define CPUCHECK    if(!(xadMasterBase->xmb_SysBase->AttnFlags & AFF_68030)) return 0;
  29.   #define CPUTEXT    " 030"
  30. #elif defined (_M68020)
  31.   #define CPUCHECK    if(!(xadMasterBase->xmb_SysBase->AttnFlags & AFF_68020)) return 0;
  32.   #define CPUTEXT    " 020"
  33. #else
  34.   #define CPUCHECK
  35.   #define CPUTEXT
  36. #endif
  37.  
  38. /* The macro CPUCHECK may be used in xcRecogData() as first command. Best
  39. is to encapsulate the variables also. This reduces the chance to crash the
  40. computer, if a lower CPU exists.
  41. For filesystem clients xc_GetInfo() may be used.
  42.  
  43. This macro is a security macro only. It is still not very clever to install
  44. wrong CPU version, but if this macro is used, the computer does not crash,
  45. but this client is skipped always.
  46. */
  47.  
  48. /* The string CPUTEXT may be used in version string after date. */
  49.  
  50. #endif /* XADMASTER_XADCPU_H */
  51.